package cn.imu.appdevexperiment2020.common;

import android.util.Log;

import androidx.appcompat.app.AppCompatActivity;

import butterknife.ButterKnife;
import cn.imu.appdevexperiment2020._1activity.ActivityCollector;

/**
 * 描述:
 *
 * @author chenconghua
 * @version 1.0
 * @create 2022-10-29 13:02
 */
public class BaseActivity extends AppCompatActivity {
    @Override
    public void setContentView(int  layoutResID) {
        super.setContentView(layoutResID);
        Log.d("BaseActivity",getClass().getSimpleName());
        ActivityCollector.addActivity(this);
        ButterKnife.bind(this);
    }

    @Override
    protected void onDestroy() {
        super.onDestroy();
        ActivityCollector.removeActivity(this);
    }
}
